package ZuoYe1;

/**
 * @name 菠菜
 * @date 2024-08-31 23:55
 */
public class Dog {
    public static int age = 10;
    private String name;
    public void setName(String name) {
        this.name = name;
    }
    public String getName() {
        return name;
    }
    public void changeAge() {
        age++;
    }
    public int getAge() {
        return age;
    }
}
